recents();
sleep(1000);
click(device.width / 2, device.height / 2);

text = "UIO OOO PAS ~ SADP OOO DSDF *\
SDFF FGF DF S ~ PASD SSP FG D *"
for (n in text) {
    if (/[a-z]/i.test(text[n])) {
        rect = className("android.view.View").text(text[n]).findOne().bounds();
        press(rect.centerX() - 2*rect.width(), rect.centerY(),200);
        sleep(500);
    } else if (text[n] == " ") {
        sleep(300);
    } else {
        sleep(350);
    }
}
text = "UO SF F GD DHAS FGHS SDF \
UO SF F GD DHAS FGHS SD S \
JH FDS FGD JH AS FGHS SDF \
UO SF F GD DHAS FGHS S D S"
for (n in text) {
    if (/[a-z]/i.test(text[n])) {
        rect = className("android.view.View").text(text[n]).findOne().bounds();
        press(rect.centerX() - 2*rect.width(), rect.centerY(),200);
        sleep(500);
    } else if (text[n] == " ") {
        sleep(500);
    } else {
        sleep(600);
    }
}